package com.zyy.game.tianlong.callback;

import com.zyy.game.tianlong.network.GameContext;
import com.zyy.game.tianlong.network.callback.ActiveCallBack;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

/**
 * 连接事件
 * @author relufi
 * @date 2019/7/24 0024
 */
@Component
@Slf4j
public class ActiveCallBackImpl implements ActiveCallBack {
    @Override
    public void channelActive(GameContext ctx) {
        log.debug("连接");
        ctx.writeAndFlush(0,0,"{\"name\":123456}");
    }
}
